package nimo.elibrary.json.model.book;

import com.google.gson.annotations.SerializedName;
import nimo.elibrary.json.model.Pagination;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Enkuso
 * Date: 11/28/12
 * Time: 5:45 PM
 * To change this template use File | Settings | File Templates.
 */
public class BookList extends Pagination {

    @SerializedName("book")
    public List<Book> books;

    public Book[] getBooksAsArray() {
        return books.toArray(new Book[books.size()]);
    }
}
